import request from '@/utils/request';

export async function getPlantByPage (params: any) {
    return request('/api/basicData/getPlantByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addPlant (params: any) {
    return request('/api/basicData/addPlant', {
    method: 'POST',
    data: params,
  });
}

export async function updatePlant (params: any) {
    return request('/api/basicData/updatePlant', {
    method: 'POST',
    data: params,
  });
}

export async function delPlant (params: any) {
    return request('/api/basicData/delPlant', {
    method: 'POST',
    data: params,
  });
}
export default { getPlantByPage, addPlant, updatePlant, delPlant }
